#include <chrono>

auto moon_phase = [](void)->int
{
    return std::chrono::system_clock::now().time_since_epoch().count() % 8;
};